﻿using Acme.MeiTuan.SDK.Api;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;

namespace Acme.MeiTuan.SDK;

public class AcmeMeiTuanSdkModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        base.ConfigureServices(context);
        context.Services.AddHttpApi<IMeiTuanApi>().ConfigureHttpClient(client =>
        {
            client.BaseAddress = new Uri("https://waimaiopen.meituan.com/api");
        });
        context.Services.AddHttpClient();
    }
}